package com.crm.service.reminditem;

import com.crm.model.entity.reminditem.SysRemindItem;
import com.crm.model.vo.reminditem.RelatedRemindVO;

import java.util.Date;
import java.util.List;

public interface SysRemindItemDbService {

    /**
     * @Description: 添加提醒事项
     * @Param: [item]
     * @Return: java.lang.Boolean
     * @Author: lixq-f
     * @Date: 2021/4/20
    **/
    Boolean insert(SysRemindItem item);


    /**
     * @Description: 编辑提醒事项
     * @Param: [item]
     * @Return: java.lang.Boolean
     * @Author: lixq-f
     * @Date: 2021/4/20
    **/
    Boolean update(SysRemindItem item);


    /**
     * @Description: 根据创建人ID获取事项列表
     * @Param: [createPelpleId]
     * @Return: java.util.List<com.crm.model.entity.reminditem.SysRemindItem>
     * @Author: lixq-f
     * @Date: 2021/4/20
    **/
    List<SysRemindItem> selectListByCreatePeopleId(String createPelpleId);


    /**
     * @Description: 通过主键获取提醒事项
     * @Param: [id]
     * @Return: com.crm.model.entity.reminditem.SysRemindItem
     * @Author: lixq-f
     * @Date: 2021/4/20
    **/
    SysRemindItem selectRemindItemById(String id);


    /**
     * @Description: 根据主键删除提醒事项
     * @Param: [id, deleteStatus]
     * @Return: Boolean
     * @Author: lixq-f
     * @Date: 2021/4/20
     **/
    Boolean deleteById(String id, short deleteStatus);


    /**
     * @Description: 批量删除提醒事项
     * @Param: [ids, deleteStatus]
     * @Return: Boolean
     * @Author: lixq-f
     * @Date: 2021/4/20
     **/
    Boolean batchDeleteByIds(List<String> ids, short deleteStatus);


    /***
     * @Description:获取相关提醒列表
     * @param accountId 账号id
     * @param selectDate 查询日期
     * @Author: luojie
     * @Date: 2021/4/27 8:41
     */
    List<RelatedRemindVO> selectRelatedRemindList(String accountId, Date selectDate,String orderStr);

}
